Copy content of OLE

Hey,

My Question: Is it possible to copy the content of an OLE object to clipboard with dxl?

I don't want to copy the Ole. I want to copy the content after the Ole is activated.

My approach:

Object obj = object(1)
oleActivate(obj)
//copy the content to clipboard

 

Thanks for your help :)

Regards,

Shariq


C.Shariq - Fri Dec 07 09:49:19 EST 2018

Re: Copy content of OLE
davidcs - Mon Dec 10 13:00:20 EST 2018

bool oleCopy(EmbeddedOleObject 
oleObject)
string oleCopy(Object 
o, Column 
c, integer 
index)
Operation

The first form copies the embedded OLE object oleObject into the system clipboard. The OLE object can then be pasted into another Rational DOORS formal object or into any other Windows application that supports automation.

The second form copies the embedded OLE object at position index in column c for object o, into the system clipboard. The OLE object can then be pasted into another Rational DOORS formal object or into any other Windows application that supports automation. 

Re: Copy content of OLE
C.Shariq - Tue Dec 11 04:12:34 EST 2018

Hey,

thx for your reply but I already looked at these two functions. They are not solving my problem.

Additional Question: What is the meaning of index in the 2nd function?

 

My current solution which I found after posting:

1. activate the OLE

2. get connection to the word application (in my case I only want to copy OLE objects which are word tables)

3. run macro in word which copy the content

 

Maybe this is not the best way but it works :) Maybe you have a better idea

Regards

 

 

Re: Copy content of OLE
davidcs - Tue Dec 11 07:49:58 EST 2018

C.Shariq - Tue Dec 11 04:12:34 EST 2018

Hey,

thx for your reply but I already looked at these two functions. They are not solving my problem.

Additional Question: What is the meaning of index in the 2nd function?

 

My current solution which I found after posting:

1. activate the OLE

2. get connection to the word application (in my case I only want to copy OLE objects which are word tables)

3. run macro in word which copy the content

 

Maybe this is not the best way but it works :) Maybe you have a better idea

Regards

 

 

I'm not exactly sure, I have only used the first form. It makes it sound like if there are multiple OLEs in an object, you could select one to copy. But that is just my guess, maybe someone who has used it can help.